package com.fastloan.mgt.customer.dao;

import com.fastloan.mgt.customer.model.ZyCustomer;
import com.fastloan.mgt.customer.model.vo.CustomerAppExt;
import com.fastloan.mgt.customer.model.vo.CustomerExt;
import com.fastloan.mgt.customer.model.vo.CustomerMarketingConunt;
import com.fastloan.mgt.customer.model.vo.StockCustomer;
import com.kawins.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author gelon
 *         createTime 2017/11/06
 */
public interface ZyCustomerMapper extends BaseMapper<ZyCustomer> {
    List<CustomerExt> queryCustomerExt(Map<String, Object> map);

    List<CustomerMarketingConunt> queryCountMarketing(Map<String, Object> map);

    List<StockCustomer> queryStockCustomers(Map<String, Object> map);

    List<CustomerAppExt> queryApp(Map<String, Object> map);

    /**
     * 极鲜网登录用户账号查询客户信息
     * @param userId
     * @return
     */
    ZyCustomer queryJxUserID(String userId);

    /**
     * 查询用户用信额度
     * @param customerId
     * @return
     */
    BigDecimal queryCreditLimits(@Param("customerId") String customerId, @Param("productId") String productId, @Param("orgId") String orgId);
}
